package com.ruoyi.coffee.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.coffee.domain.Addresses;

/**
 * 收货地址Mapper接口
 * 
 * @author dxj
 * @date 2025-01-07
 */
public interface AddressesMapper extends BaseMapper<Addresses>
{
    /**
     * 查询收货地址
     * 
     * @param id 收货地址主键
     * @return 收货地址
     */
    public Addresses selectAddressesById(Long id);

    /**
     * 查询收货地址列表
     * 
     * @param addresses 收货地址
     * @return 收货地址集合
     */
    public List<Addresses> selectAddressesList(Addresses addresses);

    /**
     * 新增收货地址
     * 
     * @param addresses 收货地址
     * @return 结果
     */
    public int insertAddresses(Addresses addresses);

    /**
     * 修改收货地址
     * 
     * @param addresses 收货地址
     * @return 结果
     */
    public int updateAddresses(Addresses addresses);

    /**
     * 删除收货地址
     * 
     * @param id 收货地址主键
     * @return 结果
     */
    public int deleteAddressesById(Long id);

    /**
     * 批量删除收货地址
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAddressesByIds(Long[] ids);
}
